package com.xinqi.xinqidev.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinqi.xinqidev.mapper.QuestionAnswerLogMapper;
import com.xinqi.xinqidev.pojo.entity.QuestionAnswerLog;
import com.xinqi.xinqidev.pojo.result.Result;
import com.xinqi.xinqidev.pojo.result.ResultUtil;
import com.xinqi.xinqidev.service.QuestionAnswerLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xin麒
 * @date 2023/12/25 14:53
 */
@Service
public class QuestionAnswerLogServiceImpl  extends ServiceImpl<QuestionAnswerLogMapper, QuestionAnswerLog> implements QuestionAnswerLogService {

    @Autowired
    private QuestionAnswerLogMapper questionAnswerLogMapper;

    @Override
    public List<QuestionAnswerLog> testGet() {
        return questionAnswerLogMapper.testGet();
    }

    @Override
    public List<QuestionAnswerLog> testGet2() {
        return questionAnswerLogMapper.testGet2();
    }

    @Override
    public Result testInsert(QuestionAnswerLog questionAnswerLog) {
        return ResultUtil.ok(questionAnswerLogMapper.testInsert(questionAnswerLog));
    }


}
